﻿using kmaraszkiewicz.Models;
using System;
using System.Linq;
using System.Web.Mvc;

namespace kmaraszkiewicz.Controllers
{
    public class HomeController : BaseController
    {
        private PortfolioEntities db = new PortfolioEntities();
        //
        // GET: /Home/

        public ActionResult Index()
        {
            try
            {
                var authorDescription = db.AuthorDescriptions.Include("Jobs").First();
                return View(authorDescription);
            }
            catch (Exception err)
            {
                return View();
            }
            
        }

    }
}